import { request } from "@/utils/axios";

// 论坛
/**
 * 获取论坛列表
 */
export function getForumList() {
  return request("/forum/list", "get");
}

/**
 * 查询论坛列表
 */
export function queryForumList(data) {
  return request("/forum/query", "get", data);
}

/**
 * 删除论坛
 */
export function removeForum(data) {
  return request("/forum/remove", "delete", data);
}

/**
 * 获取论坛详情数据
 */
export function getDetails(data) {
  return request("/forum/details", "get", data);
}

/**
 * 获取论坛评论数据
 */
export function getComment(data) {
  return request("/forum/comment", "get", data);
}

/**
 * 删除论坛评论数据
 */
export function removeComment(data) {
  return request("/forum/remove/comment", "delete", data);
}

/**
 * 发表评论
 */
export function publishComment(data) {
  return request("/forum/publish/comment", "post", data);
}
